﻿@model string

@if ((bool)ViewData.GetValueOrDefault("IncludeTextArea", true))
{
    <textarea id="@Model" name="@Model"></textarea>
}
<br />
<div id="@Model-image-uploader">
    Cookies: <textarea class="cookies"></textarea>
    <br />
    <button class="upload-images">Upload all images</button>
    <br />
    <input type="checkbox" class="use-google-image-proxy" id="@Model-use-google-image-proxy" />
    <label for="@Model-use-google-image-proxy">Use Google image proxy</label>
    <ul class="pending-image-list">
    </ul>
    <ul class="uploaded-image-list">
    </ul>
</div>

@Html.Script(StandardLibraries.Jquery)
@Html.Script("tiny_mce/jquery.tinymce.js")
@Html.Script("jstorage.js")
@Html.Script("Admin/NovelChapter/RichTextChapterContentEditor.js?20120315.4")
<script type="text/javascript">
//<![CDATA[
    $(function () {
        $("#@Model").chapter_content_editor('@Url.Action("GetWebImage", "File")', "#@Model-image-uploader");
    });
//]]>
</script>
